﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace Campus.Entities
{
    [Table("Actividades")]    
    public class Actividad
    {
        
        public int ActividadId
        {
            get;
            set;
        }
        
        [Required(ErrorMessage = "El {0} requerido")]
        [StringLength(20, ErrorMessage = "El {0} no puede tener mas 20 caracteres")]
        public string Nombre
        {
            get;
            set;
        }

        [Required(ErrorMessage = "La {0} es requerida")]
        [DisplayName("Frecuencia de Pago")]
        public int FrecuenciaDePagoId { get; set; }

        public virtual FrecuenciaDePago FrecuenciaDePago
        {
            get;
            set;
        }
    }
}
